POV-Ray : Newsgroups : povray.binaries.images : Spiral wrapped around a sphere. How? : Re: Spiral wrapped around a sphere. How? Server Time
16 Aug 2024 12:17:34 EDT (-0400)
  Re: Spiral wrapped around a sphere. How?  
From: Patrick Dugan
Date: 3 Feb 2002 20:02:39
Message: <3c5dddaf$1@news.povray.org>
Well I probably butchered the formula but here is what I made:

#declare MinRad = pi/2;
#declare MaxRad = (3*pi/4)*10;
#declare Test =
union {
   #while (MinRad < MaxRad)
      object {sphere {<0,0,0>, 0.1 translate <cos(MinRad)*1, sin(MinRad)*1,
MinRad/10> pigment {Red}}}
   #declare MinRad = MinRad + 0.01;
   #end
}

object {Test rotate x * -90 translate <0,-2,0>}

This created a spiral but always the same distance from the center.  I was
trying to make something that would get closer to the center as it moved up
or down.
What did I do wrong?  (I'm sorry my math skills are really poor...)



"Shay" <shi### [at] houstonrrcom> wrote in message
news:3c5dcd84@news.povray.org...
>
> This is probably the simplest way
> Just start at the top
> Put an object at <cos(pi/2)*radius, sin(pi/2)*radius, 0>
> Incremently increase your angle from pi/2 to 3*pi/4
> each time you place an object, rotate it a little bit around the y-axis
>
> Hope this helps,
>  -Shay
>
>
> "Patrick Dugan" <pat### [at] netinsnet> wrote in message
> news:3c5dcaf2@news.povray.org...
> > I've posted information about this image in povray general.
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.